package me.zhengjie.gas.mqtt;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MqttRunner implements CommandLineRunner {


	@Override
	public void run(String... args) throws Exception {
		MqttTemplate mqttTemplate = MqttTemplate.getInstance();
		mqttTemplate.subscribe("/GAS/#", 0);
	}
}
